#ifndef KISE_TAO_CASCADE
#define KISE_TAO_CASCADE
#include "stdlib.h"
#include "IntImage.h"

//struct SimpleClassifier
//{
//	double thresh;
//	double error;
//	int parity;
//	int type; // which type of feature?
//	int x1,x2,x3,x4,y1,y2,y3,y4;
//};
//struct AdaBoostClassifier
//{
//	int count;
//	SimpleClassifier* scs;
//	double* alphas;
//	double thresh;
//};
//
//struct CascadeClassifier
//{
//	int count;
//	AdaBoostClassifier* ac;
//};

struct objPos
{
	int x;
	int y;
	int width;
	int height;
};

static objPos objpos( int x, int y, int width, int height )
{
	objPos r;
	r.x = x;
	r.y = y;
	r.width = width;
	r.height = height;
	return r;
}

int  detectface( IntImage& original, objPos res[256], int minsize, int maxsize, float scale );

int  kise_detectface( unsigned char* grayimg, int width, int height, int widthstep, objPos res[256], int minsize, int maxsize, float scale, int* maskinter );

 
#endif